divide into X and Y